package com.aaa.hospital.controller;

import com.aaa.hospital.pojo.vo.PatientVo;
import com.aaa.hospital.result.AjaxResult;
import com.aaa.hospital.service.DocService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:张海金
 * Description:T0D0
 * DateTime:2022/1/17 19:41
 **/
@RestController
@RequestMapping("doc")
public class DocController {

    @Autowired
    private DocService docService;

    @RequestMapping("list")
    public AjaxResult list(){
        return docService.list();
    }

    @RequestMapping("addGuahao")
    public AjaxResult addGuahao(PatientVo patientVo){

        return docService.addPatient(patientVo);

    }
}
